package com.dizang.ddd.entity;

import java.util.List;

import com.dizang.ddd.business.IProjectCreator;

public class Project extends AbstractProjectBuilder implements IProjectCreator {

    public Project(String artifactId, String parentArtifactId, String groupId,
            List<AbstractProjectBuilder> dependencies, List<String> packages) {
        super();
        this.artifactId = artifactId;
        this.parentArtifactId = parentArtifactId;
        this.groupId = groupId;
        this.dependencies = dependencies;
        this.packages = packages;
        this.pomBuilder = new PomBuilder(artifactId,parentArtifactId,groupId,dependencies,null);
    }

    public boolean createProject(String path) {
        createPath(path);
        createSrc(path);
        createPackage(path);
        this.pomBuilder.createPom(path);
        return true;

    }

}
